Enter the first sequence x(n)= [-1 3 2 4 1]
Enter the second sequence y(n) = [1 2 3 4 1]
autocorrelation of qn[xn,xn]
    -1    -1    12    15    31    15    12    -1    -1

autocorrelation of pn[yn,yn]
     1     6    14    24    31    24    14     6     1

cross correlation of zn[xn,yn]
    -1    -1    11    19    28    23    13     6     1

cross correlation an[yn,xn]
     1     6    13    23    28    19    11    -1    -1
